package com.product.bargain.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 * 
 * @author brh
 * @email sunlightcs@gmail.com
 * @date 2022-03-10 18:46:48
 */
@Data
@TableName("mybargain")
public class MybargainEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 编号
	 */
	@TableId
	private Integer id;
	/**
	 * 砍价活动id
	 */
	private Long bargainId;
	/**
	 * 商品id
	 */
	private Long goodsId;
	/**
	 * 商品名称
	 */
	private String goodsName;
	/**
	 * 参与砍价时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date createtime;
	/**
	 * 结束时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date endtime;
	/**
	 * 商品价格
	 */
	private Double goodsPrice;
	/**
	 * 用户id
	 */
	private Integer userId;
	/**
	 * 用户姓名
	 */
	private String userName;

}
